package com.hxc.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class News {

    private Integer id;
    private String title;
    private String author;
    @DateTimeFormat(pattern="yyyy-MM-dd mm:hh:ss")
    private Date createTime;
    private Integer cartigyId;
    private Cartiy cartiy;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCartigyId() {
        return cartigyId;
    }

    public void setCartigyId(Integer cartigyId) {
        this.cartigyId = cartigyId;
    }

    public Cartiy getCartiy() {
        return cartiy;
    }

    public void setCartiy(Cartiy cartiy) {
        this.cartiy = cartiy;
    }
}
